package com.DHH.Entity.Base;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类BaseThirdpartyLogin
 * 数据表base_tb_thirdparty_login
 * 第三方登录数据表

 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "base_tb_thirdparty_login")
public class BaseThirdpartyLogin  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//
	@Length(max = 255, min = 0, message = "长度为0-255个字符")
	private String accessToken;
	//
	@NotNull(message = "不能为空")
	private Integer loginTypeId;
	//
	@Length(max = 255, min = 0, message = "长度为0-255个字符")
	private String openId;
	//
	@NotNull(message = "不能为空")
	private Integer userId;


	public BaseThirdpartyLogin(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setAccessToken(String accessToken){
		this.accessToken=accessToken;
	}

	public String getAccessToken(){
		return this.accessToken;
	}
	public void setLoginTypeId(Integer loginTypeId){
		this.loginTypeId=loginTypeId;
	}

	public Integer getLoginTypeId(){
		return this.loginTypeId;
	}
	public void setOpenId(String openId){
		this.openId=openId;
	}

	public String getOpenId(){
		return this.openId;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}

	public Integer getUserId(){
		return this.userId;
	}


}
